/********************************************************************
Copyright by FFCS,  2010-05-05
File Name: o_ppmdisprela.hxx
Created Date: 2010-05-05
Author: AUTO
Version:
Description:
Last Version Date:
Version Date:
Modifications Since Last Version: 
*******************************************************************/
/********************************************************************
Copyright by FFCS,  2010-05-05
Class Name: O_PpmDispRela
Created Date: 2010-05-05
Author: AUTO
File Name: o_ppmdisprela.hxx
Implementation File: o_ppmdisprela.cxx
Last Version Date:
Version Date:
*******************************************************************/
#ifndef __O_TRANS_INPUT_CONDITION__
#define __O_TRANS_INPUT_CONDITION__
class O_transInputCondition
{ 
public: 
  O_transInputCondition();
  ~O_transInputCondition();

  void transConditionToCatalogPermit(vector<struct_Condition> vec_condition,struct_PpmCatalogPermission & r_permit );
  void transConditionToTimeLimitSpec(vector<struct_Condition> vec_condition,list<STRUCT_TIME_LIMIT_SPEC>& list_time_limit);

  void transConditionToCountersign(vector<struct_Condition> vec_condition,struct_taskCountersign & r_countersign);

  void transConditionToTempSpec(vector<struct_Condition> vec_condition,struct_PpmProdTemplate& r_temp);
  
  void transConditionToTaskQuery(vector<struct_Condition> & vec_condition,
    struct_PpmProdAppTask & r_condition);
  
  void transConditionToProcOrdQuery(vector<struct_Condition> & vec_condition,
    struct_PpmProcOrd & r_condition);

  string getNextVersion(double d_long ,string str_old_version);

  void transConditionToAppQuery(vector<struct_Condition> & vec_condition,struct_PpmProdApplication & r_condition);
  
  void transConditionToCatalogQuery(vector<struct_Condition> vec_condition,
    struct_PpmProdCatalog & r_conditionCatalog);

  void transConditionToOperationQuery(vector<struct_Condition> vec_condition,
    vector<string> & vect_taskId,
    vector<string> & vect_procOrdId);

  void transConditionToApplicationCode(vector<struct_Condition> vec_condition,
    struct_appBasicInfo & r_appBasicInfo);

  void transConditionToTempAttr(vector<struct_Condition> vec_condition,
    struct_PpmProdTempAttr & r_condition);
  
  void transConditionToCfgRelation(vector<struct_Condition> vec_condition,
    struct_ProdCfgPpmAttrRela & r_rela);

  void transConditionToSysCfgTree(vector<struct_Condition> vec_condition,
	struct_SysCfgTree & r_rela);

  void transConditionToPpmProduct(vector<struct_Condition> vec_condition,
	struct_PpmProdOffer & r_offer);
  
  void transConditionToPpmAttrRela(vector<struct_Condition> vec_condition,
	struct_PpmAttrRela & r_attrrela);
  
  void transConditionToCatalogRela(vector<struct_Condition> vec_condition,
	struct_PpmCatalogRela & r_rela);
  
  void transConditionToCatalogStaff(vector<struct_Condition> vec_condition,
	struct_PpmStaffPermission & r_staff);

  void transConditionToAppVersion(vector<struct_Condition> vec_condition,
	struct_PpmProdApplication & r_version);

  void transConditionToItemSpecNode(vector<struct_Condition> vec_condition,
	struct_PpmPriceDescItemCatalog & r_itemmode);
  
  void transConditionToRuleCatalog(vector<struct_Condition> vec_condition,
	struct_PpmOfferRuleCatalog & r_catalog);

  void transConditionToCatalogId(vector<struct_Condition> vec_condition,
	struct_PpmOfferRuleCatalogNode & r_catalognode);

  void transSimilitudeAndMutexInfo(vector<struct_Condition> & vec_condition,
					struct_SimilitudeAndMutexInfo & r_info);

  void transCoditiontostruct(vector<struct_Condition> & vec_condition,struct_queryFlowTimeRecord &r_flowtimerecord);

  void transCoditiontoLogInfo(vector<struct_Condition> & vec_condition,struct_PpmLogInfo & r_logInfo);

  void transConditionToRatio(vector<struct_Condition> vec_condition,struct_PpmRatio & r_temp);
  void transConditionToThreshold(vector<struct_Condition> vec_condition,
						   struct_PpmZb & r_rela);
  void transConditionToMdseCount(vector<struct_Condition> vec_condition,
						   struct_PpmMdseCount & r_rela);

  void transConditionToSystemList(vector<struct_Condition> vec_condition,
						   vector<string> & vect_systemList);

  void transConditionToRemark(vector<struct_Condition>vec_condition,string & str_remark);

  void transConditionToInterSend(vector<struct_Condition>vec_condition,
    struct_PpmInterfaceSend & r_condition);
  
  void transConditionToInterSend(vector<struct_Condition> vec_condition,
    vector<string> & vect_id);

  void transConditionToPricePlanCondition(vector<struct_Condition> vec_condition,
						   struct_PricingPlan & r_condition);

  void transConditionToAccessories(vector<struct_Condition> vec_condition,
						   struct_PpmAppAttachment & r_condition);
  
  void transConditionToOrderTimeMofiy(vector<struct_Condition> vec_condition,
    struct_PpmProdOffer & r_offer);

	void transConditionToMasterCode(vector<struct_Condition> vec_condition,
		string & str_zbfl,string &str_name);

	void transConditionToAppQuery(vector<struct_Condition> & vec_condition,struct_PpmCollect & r_collect);
  void transConditionToCollectQuery(vector<struct_Condition> & vec_condition,struct_PpmCollect & r_collect);
}; 

#endif 
